<template>
	<view class="main">
		<uni-nav-bar fixed left-icon="back" title="密码设置" color="#333333" backgroundColor="#FFFFFF" :border="false" statusBar
			@clickLeft="goReturn"></uni-nav-bar>
		
		 <view class="pwd-list">
			 <view class="pwd-item" v-for="(item,index) in items" :key="index" @click="gp(item.page)">
				 <view class="left">{{item.title}}</view>
				 <view class="right">
					 <uni-icons type="arrowright" color="#333333" size="14"></uni-icons>
				 </view>
			 </view>
		 </view>
		
		 
	</view>
</template>

<script>
	export default {
		data() {
			return {
				items:[
					{title:'设置登录密码',page:'loginpwd/loginpwd'},
					{title:'设置支付密码',page:'paypwd/paypwd'},
					//{title:'忘记登录密码',page:'forgetpwd/forgetpwd'}
				]
			}
		},
		methods: {
			 gp(path){
				 uni.navigateTo({
				 	url:path
				 })
			 },
			// 返回
			goReturn() {
				uni.navigateBack({
					delta: 1
				});
			}
		}
	}
</script>

<style lang="scss">
	.pwd-list{
		width: 100%;
		display: flex;
		flex-direction: column;
		.pwd-item{
			width: 100%;
			height: 100upx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			border-bottom: 1px solid #F8F8F8;
			font-size: 28upx;
		}
	}
</style>
